package com.health.fragment;

import com.health.viewscontrols.PersonalFileActivity.onFragmentSave;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

/**
 * 基本fragment
 */
public abstract class NovaFragment extends Fragment implements onFragmentSave {
	public View onCreateView(LayoutInflater inflater,
			 ViewGroup container,  Bundle savedInstanceState) {
		View view = findViews(inflater);
		setupView(view);
		setData();
		addListener();
		return view;
	}

	/**
	 * 加载布局
	 * 
	 * @param inflater
	 * @return
	 */
	public abstract View findViews(LayoutInflater inflater);

	/**
	 * 界面初始化
	 */
	public abstract void setupView(View view);

	/**
	 * 给控件添加监听事件
	 */
	public abstract void addListener();

	/**
	 * 设置初始数据
	 */
	public abstract void setData();

	@Override
	public void save() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void setTizhong(String value) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void setXueya(String gaoya, String diya, String mailv) {
		// TODO Auto-generated method stub
	}

	@Override
	public void setXuetang(String value) {
		// TODO Auto-generated method stub
		
	}
	@Override
	public void setTiWen(String tiwen) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void setXueHongDanBai(String xhdb) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void setMaiLv(String mailv) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void setLiBangECG(String libangEcgResult, String time) {
		// TODO Auto-generated method stub
		
	}
	
	@Override
	public void setNiaoYeFenxi(String niaoDanYuan,String qianXue,String DanHongSu,String tongti,String puTaoTang,String danBaiZhi,String PH,String yaXiaoSuan,String baiXiBao,String biZhong,String weiShengSu){
		
	}

	@Override
	public void setCHOL(String dgc) {

	}

	@Override
	public void setXinLv(String xinlv) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void setXueYang(String xueYang) {

	}
}